import request from '@/utils/request'

export function getList(schoolno,name,current,size) {
  return request.get("/student/list",{params:{schoolno,name,current,size}})
}

export function getClassList() {
  return request.get("/class/listAll")
}

export function save(student) {
  return request.post("/student/save",student)
}

export function update(student) {
  return request.post("/student/update",student)
}

export function del(ids) {
  return request.post("/student/remove",ids)
}

export function importStudent(classId,startNum,form) {
  return request.post("/student/import/"+classId+"/"+startNum, form, {headers: {'Content-type': 'multipart/form-data'}})
}

export function getParentInfo(id){
  return request.get("/student/getParentInfo/" + id)
}


